package com.aier.school.entity;

import static javax.persistence.GenerationType.IDENTITY;

import java.sql.Time;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

/**
 * SchoolGradeAttendance entity. @author MyEclipse Persistence Tools
 */

@SuppressWarnings("serial")
public class SchoolGradeAttendance implements java.io.Serializable {

    // Fields 学校职务作息表

    private Long sgid;		//作息id
    private Long gid;		//职务id
    private Short type;		//类型：1星期日2星期一3星期二4星期三5星期四6星期五7星期六
    private Time sadate;	//上午开始时间
    private Time eadate;	//上午结束时间
    private Time spdate;	//下午开始时间
    private Time epdate;	//下午结束时间


    // Constructors

    /** default constructor */
    public SchoolGradeAttendance() {
    }

    /** full constructor */
    public SchoolGradeAttendance(Long gid, Short type,
            Time sadate, Time eadate, Time spdate, Time epdate) {
        this.gid=gid;
        this.type = type;
        this.sadate = sadate;
        this.eadate = eadate;
        this.spdate = spdate;
        this.epdate = epdate;
    }

    // Property accessors
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "sgid", unique = true, nullable = false)
    public Long getSgid() {
        return this.sgid;
    }
 
    public void setSgid(Long sgid) {
        this.sgid = sgid;
    }
    @Column(name = "gid", nullable = true)
    public Long getGid() {
        return this.gid;
    }

    public void setGid(Long gid) {
        this.gid = gid;
    }
    @Column(name = "type", nullable = true)
    public Short getType() {
        return this.type;
    }

    public void setType(Short type) {
        this.type = type;
    }
    @Column(name = "sadate", nullable = true)
    public Time getSadate() {
        return this.sadate;
    }

    public void setSadate(Time sadate) {
        this.sadate = sadate;
    }
    @Column(name = "eadate", nullable = true)
    public Time getEadate() {
        return this.eadate;
    }

    public void setEadate(Time eadate) {
        this.eadate = eadate;
    }
    @Column(name = "spdate", nullable = true)
    public Time getSpdate() {
        return this.spdate;
    }

    public void setSpdate(Time spdate) {
        this.spdate = spdate;
    }
    @Column(name = "epdate", nullable = true)
    public Time getEpdate() {
        return this.epdate;
    }

    public void setEpdate(Time epdate) {
        this.epdate = epdate;
    }



}